/*
** read_aff_map.c for epikong in /home/florian/nibbler/epikong/etape_1/srcs
** 
** Made by Florian Coulon
** Login   <coulon_a@epitech.net>
** 
** Started on  Sat Mar  3 06:45:06 2012 Florian Coulon
** Last update Sat Mar  3 08:45:13 2012 Florian Coulon
*/

#include	<unistd.h>
#include	<stdlib.h>
#include	<stdio.h>
#include	<SDL/SDL.h>
#include	<SDL/SDL_image.h>
#include	"epikong.h"

extern char	*tab_test;
extern int	map_param[2];

int	(*tab_aff_fct[])(int x, int y, int pos, 
			 SDL_Surface *screen/* , SDL_Surface obj */) = 
{
  /* aff_wall, */
  /* aff_player */
  /* aff_scale, */
  /* aff_monster, */
  /* aff_start, */
  /* aff_end */
};

static void	init_SDL(SDL_Surface *screen)
{
  if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) == -1)
    {
      fprintf(stderr, "ERROR : Failed to init SDL => %s\n", SDL_GetError());
      exit(EXIT_FAILURE);
    }
  screen = SDL_SetVideoMode(map_param[1] * 55, map_param[0] * 55,
			    32, SDL_HWSURFACE | SDL_DOUBLEBUF);
}

int	read_and_aff()
{
  SDL_Surface	*screen;
  screen = NULL;
  init_SDL(screen);

  SDL_Quit();
}
